﻿using System;
using System.Collections.Generic;
using HYCodeBase.Math;

namespace HYRevitCode.XYZUtility
{
	public class PointComparer : IComparer<PointSort>
	{
		int IComparer<PointSort>.Compare(PointSort first, PointSort second)
		{
			if (MathUtility.IsEqual(first.param, second.param, 1E-05))
			{
				return 0;
			}
			if (first.param <= second.param)
			{
				return -1;
			}
			return 1;
		}
	}
}
